package com.fourth.service.impl;

import com.fourth.dao.UBBannerMapper;
import com.fourth.service.UBBannerService;
import com.ljx.entity.Banner;
import com.ljx.vo.Result;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 蒋一飞
 * @adte 2023/3/2 19:29
 */
@Service
public class UBBannerServiceImpl implements UBBannerService {
    @Resource
    private UBBannerMapper ubBannerMapper;

    /**
     * 首页轮播图信息
     * @return
     */
    @Override
    public Result<Banner> getBanner() {
        List<Banner> bannerList = ubBannerMapper.getBannerList();
        return new Result(2000,"查询成功", bannerList);
    }
}
